<template name="bookListItem">
	<view class="container" @click="toDetail">
		<view class="item-left">
			<view class="qiu"></view>
			<view class="line"></view>
		</view>
		<view class="item-right">
			<view class="bookInfo-top">
				<view class="itemTitle">《{{bookItem.title}}》</view>
				<view calss="itemTime" style="color: #ffd26b;font-size: 25rpx;line-height: 55rpx;">{{bookItem.time}}</view>
			</view>
			<view class="introduction"></view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "bookListItem",
		data() {
			return {
				
			}
		},
		props: {
			bookItem:{
				type: Object
			},
			activeIndex:{
				type:Number
			}
		},
		methods: {
			toDetail() {
				wx.navigateTo({
					url: '/pages/detail/detail'
				})
			}
		},
	}
</script>

<style>
	.container {
		margin-bottom: -30rpx;
		width: 100%;
		display: flex;
		margin-left: -60rpx;
	}
	.item-left {
		width: 10%;
		height: 170rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.item-left .qiu {
		width: 20rpx;
		height: 20rpx;
		border-radius: 50%;
		border: 4rpx solid #7153ff;
	}
	.item-left .line {
		margin-top: 5rpx;
		width: 4rpx;
		height: 170rpx;
		background-color:  #7153ff;
	}

.item-left qiu {
		width: 30rpx;
		height: 30rpx;
		border-radius: 50%;
		border: 2rpx solid #7153ff;
	}
	
	.item-right {
		width: 83%;
		justify-content: left;
		align-items: flex-end;
	}
	.bookInfo-top {
		width: 100%;
		display: flex;
		justify-content: space-between;
		
	}
	.itemTitle {
		color: #3b2b79;
		font-weight: bold;
		font-size: 38rpx;
	}
	.itemTime {
		color: #ffd26b;
		font-weight: bold;
	}
</style>
